package com.zc.study.thread.多线程第一章节.多线程1_4;

public class test {
    public static void main(String[] args) {
        ThreadIsAlive th = new ThreadIsAlive();
        System.out.println("begin当前线程处于"+th.isAlive());
        th.start();
        System.out.println("end"+th.isAlive());
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("after 休眠"+th.isAlive());
    }
}
